package com.woniu.supermarket.mapper;

import com.woniu.supermarket.entity.Stock;
import com.woniu.supermarket.entity.WarehousingDetail;
import com.woniu.supermarket.vo.StockVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface StockMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Stock record);

    Stock selectByPrimaryKey(Integer id);

    List<Stock> selectAll();

    int updateByPrimaryKey(Stock record);

    List<StockVo> selectByName(String name);

    List<StockVo> selectStock();

    int insertBatchStock(@Param("stockList") List<Stock> stockList);

    int updateStockLimit(Stock stock);

    int updateBatchStock(@Param("stockList")List<Stock> stockList);


//    List<Stock> insertBatchStock(@Param("stock") Stock stock);

}